[%if count($array)>0%]
<table class="table table-hover">
	<thead>
		<tr class="bg_feishe kill_copy">
			<th class="text-center table_width_60">[%pack:public_pack-espcms_lable_select_name%]</th>
			<th class="text-center table_width_100 sort_field" sort-field="oprid">[%pack:public_pack-espcms_lable_id_name%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_ordersn%]</th>
			<th class="text-center">[%pack:member_pack-espcms_lable_user_id%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_paysn2%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_paytime2%]</th>
			<th class="text-right">[%pack:order_pack-espcms_order_payamount2%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_payclass%]</th>
			<th class="text-center">[%pack:order_pack-espcms_order_opid%]</th>
			<th class="text-center">[%pack:public_pack-espcms_lable_addtime%]</th>
			<th class="text-center table_width_200">[%pack:public_pack-espcms_lable_control_name%]</th>
		</tr>
	</thead>
	<tbody id="sortable">
		[%forlist from=$array key=i%]
		<tr data-id="[%$array[i].oprid%]" class="selecticon">
			<td class="text-center">
				[%if $array[i].islock==0%]
				<input type="checkbox" name="select_id" class="select_id" value="[%$array[i].oprid%]"/>
				[%else%]
				<input type="checkbox" name="select_id" class="select_id" value="0" disabled/>
				[%/if%]
			</td>
			<td class="text-center">[%$array[i].oprid%]</td>
			<td class="text-center">[%$array[i].ordersn%]</td>
			<td class="text-center">[%$array[i].username%]</td>
			<td class="text-center">[%if $array[i].paysn=='0'%]/[%else%][%$array[i].paysn%][%/if%]</td>
			<td class="text-center">[%$array[i].paytime|espcms_timeformat(2)%]</td>
			<td class="text-right">[%$array[i].payamount|espcms_format_money(2)%]</td>
			<td class="text-center">
				[%if $array[i].payclass==1%]<span class="text-green">[%pack:order_pack-espcms_order_payclass_1%]</span>[%/if%]
				[%if $array[i].payclass==2%]<span class="text-orange">[%pack:order_pack-espcms_order_payclass_2%]</span>[%/if%]
			</td>
			<td class="text-center">
				[%if $array[i].paytype==1%]<span class="text-green">[%pack:order_pack-espcms_order_opid_1%]</span>[%/if%]
				[%if $array[i].paytype==0%]<span class="text-orange">[%pack:order_pack-espcms_order_opid_0%]</span>[%/if%]
			</td>
			<td class="text-center">[%$array[i].addtime|espcms_timeformat(3)%]</td>
			<td class="text-center kill_copy">
				<button type="button" class="btn btn-green btn-padding10 btn-xs espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_button_view%]（[%$array[i].ordersn%]）" tab_url="[%$array[i].vieworder%]">[%pack:order_pack-espcms_order_button_view%]</button>
				<button type="button" class="btn btn-green btn-padding10 btn-xs espcms_tab_link" tab_icon="espcms_icon_fa espcms_icon_fa-file-text-o" tab_name="[%pack:order_pack-espcms_order_payreceipt_button_view%]（[%$array[i].paysn%]）" tab_url="[%$array[i].view%]">[%pack:botton_pack-espcms_botton_view%]</button>
				[%if $array[i].islock==0 && @this->power('editOrderFinance')%]
				<button type="button" class="btn btn-orange btn-padding10 btn-xs espcms_tab_link" tab_icon="glyphicon glyphicon-edit" tab_name="[%pack:order_pack-espcms_order_button_edit_payreceipt%]" tab_close="false" tab_url="[%$array[i].edit%]">[%pack:botton_pack-espcms_botton_modify%]</button>
				[%/if%]
			</td>
		</tr>
		[%/forlist%]
	</tbody>
</table>
[%else%]
<table class="table table-hover" id="tablelist">
	<tbody>
		<tr class="selecticon">
			<td class="text-center bort0" colspan="20">[%pack:public_pack-espcms_no_infomessage%]</td>
		</tr>
	</tbody>
</table>
[%/if%]